package org.myself.meeting.mapper;

import org.apache.ibatis.annotations.Param;
import org.myself.meeting.model.Award;
import org.myself.meeting.model.AwardRecord;

import java.util.Date;
import java.util.List;

public interface AwardMapper {

    List<Award> getAward();

    Integer addAwardRecord(AwardRecord awardRecord);

    List<AwardRecord> getAwardRecordAll();

    List<AwardRecord> getAwardRecordStu(@Param("status") Integer status);

    //更新哦奖品记录的status
    Integer updateAwardById(@Param("awardrecordid")Integer id, @Param("status")Integer status);

    List<Award> getAwardAll();

    Integer updateAwarding(@Param("awardid")Integer id, @Param("awardname")String name);
}
